public class Dome10 {
	public static void main(String[] args) {
		double sum = 0;
		double height = 100;
		for(int i = 1;i<=10;i++){
			sum = height+height/2+sum;
			height/=2;
			
		}
		sum-=height;
		System.out.println("共经过"+sum+"米");
		System.out.println("第10次弹起的高度为："+height);
	}
}

